@echo off

rem 启动进程前杀掉已有进程
taskkill /f /im nginx.exe

set currentDir=%cd%
cd %currentDir%
cd nginx

nginx.exe -v
echo.
echo Start Nginx
rem nginx.exe -c ./conf/nginx.conf -p %currentDir%
start /b nginx.exe -c ./conf/nginx.conf

rem nginx.exe -c ./conf/nginx.conf
rem pause

